import { reactive } from "vue";
import { getById } from "@/api/recipeType";

export const _$ = reactive({
  requestParam: {
    id: null,
  },
  responseParam: {},
});

export const $ = {
  loadDetail() {
    getById(_$.requestParam.id).then((data) => {
      _$.responseParam = data;
    });
  },

  clean() {
    _$.responseParam = {};
  },
};

export const to = {};
